function sort_by_name()
{
var b;
var c;
var name = new Array();
for(b=1;b<=npeeps;b++) name[b]=full_name[b]+Year[b];
for(b=1;b<=npeeps;b++)
{
rank[b]=b;
c=b-1;
while (c>0)
{
if (name[c]>name[b]) {rank[b]--; rank[c]++;}
c--;
}
}
for(b=1;b<=npeeps;b++)
{
oo[rank[b]]=b;
}
}